package com.criticalbotch.enjinapi;

import java.util.Date;

public class EnjinUser {
	
	private int ID;
	private String username;
	private int forum_post_count;
	private int forum_votes;
	private int forum_up_votes;
	private int forum_down_votes;
	private long lastseen;
	private long datejoined;
	
	public EnjinUser()
	{
		
	}
	
	public void setID(int id)
	{
		ID = id;
	}
	
	public void setUsername(String n)
	{
		username = n;
	}
	
	public void setForumPostCount(int n)
	{
		forum_post_count = n;
	}
	
	public void setForumVotes(int n)
	{
		forum_votes = n;
	}
	
	public void setForumUpVotes(int n)
	{
		forum_up_votes = n;
	}
	
	public void setForumDownVotes(int n)
	{
		forum_down_votes = n;
	}
	
	public void setLastSeen(long datecode)
	{
		lastseen=datecode*1000;
	}
	
	public void setDateJoined(long datecode)
	{
		datejoined=datecode*1000;
	}
	
	public int getID()
	{
		return ID;
	}
	
	public String getUsername()
	{
		return username;
	}
	
	public int getForumPostCount()
	{
		return forum_post_count;
	}
	
	public int getForumVotes()
	{
		return forum_votes;
	}
	
	public int getForumUpVotes()
	{
		return forum_up_votes;
	}
	
	public int getForumDownVotes()
	{
		return forum_down_votes;
	}
	
	public Date getLastSeen()
	{
		Date date = new Date(lastseen);
		return date;
	}
	
	public Date getDateJoined()
	{
		Date date = new Date(datejoined);
		return date;
	}
	
	public String toString()
	{
		String ret = "";
		ret+="ID: "+getID()+"\n";
		ret+="Name: "+getUsername()+"\n";
		ret+="Post Count: "+getForumPostCount()+"\n";
		ret+="Votes: "+getForumVotes()+"\n";
		ret+="Votes Up: "+getForumUpVotes()+"\n";
		ret+="Votes Down: "+getForumDownVotes()+"\n";
		ret+="Last Seen: "+getLastSeen()+"\n";
		ret+="Date Joined: "+getDateJoined()+"\n";
		return ret;
	}

}
